#pragma once

namespace LSH
{

class IndexBuffer
{
public:
    IndexBuffer(void);
    ~IndexBuffer(void);
public:
    void create(UINT size);

    void* lock(UINT size=0);
    void unlock();

    void map(void* pIndexs, UINT size);
public:
    void SetAsIndicesSource();
protected:
    UINT _size;

    IDirect3DIndexBuffer9* _pD3dIB;
};

} //LSH
